import Layout from '@/layout'

// 员工模块
export default {
  path: '/employees',
  component: Layout,
  // redirect: '/employees',
  children: [
    // 审批默认页面
    {
      path: '',
      name: 'employees',
      component: () => import('@/views/employees'),
      meta: { title: '员工', icon: 'people' }
    },
    {
      // 这里的 : 不能省略
      path: 'detail/:id',
      name: 'detail',
      component: () => import('@/views/employees/detail'),
      hidden: true
    },
    {
      // 这里的 : 不能省略
      path: 'print/:id',
      name: 'print',
      component: () => import('@/views/employees/components/print'),
      hidden: true,
      meta: {
        title: '员工打印'
      }
    }
  ]
}
